import Vue from 'vue'
import Vuex from 'vuex'
import DataAction from './dataAction'

Vue.use(Vuex)


export default new Vuex.Store({
  state: {
    isModalShow: false,
    dataAction: new DataAction() ,// 封装的方法
    transData: null,
    editId: null,
    userInfo: null,
    roleMenList: []
  },
  mutations: {
    showEditMeno (state:any , editMeno: any){
      state.transData = editMeno
    },
    updateUserInfo(state:any, value:any){
      state.userInfo= value
    },
    addMenuList(state:any,value:any) {
      state.roleMenList = value
    }
  },
  actions: {
  },
  modules: {
  }
})
